package com.joven.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/index.do")
public class IndexController  {
	
	
	//到Hibernate目录页
	@RequestMapping(params="method=hb")
	public String toHibernate(ModelMap model,HttpServletRequest request, HttpServletResponse response){
			return "redirect:hb.do?method=input";
	}
		
    //到JQUERY目录页
	@RequestMapping(params="method=jquery")
	public String toJquery(ModelMap model,HttpServletRequest request, HttpServletResponse response){
		return "jquery/index";
	}
	
}
